home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / lib / partman / update.d / 80visual < prev    next >
Text File  |  2008-10-29  |  500b  |  30 lines

  1. #!/bin/sh
  2.  
  3. dev=$1
  4. num=$2
  5. id=$3
  6. size=$4
  7. type=$5
  8. fs=$6
  9. path=$7
  10. shift; shift; shift; shift; shift; shift; shift
  11. name=$*
  12.  
  13. cd $dev
  14.  
  15. mkdir -p $id
  16.  
  17. if [ ! -f visuals ]; then
  18.     for i in /lib/partman/valid_visuals.d/*; do
  19.         if [ -x "$i" ]; then $i; fi
  20.     done |
  21.     sed 's/    .*//' |
  22.     grep '^number$\|^type$\|^size$\|^name$\|^filesystem$\|^bootable$\|^method$\|^mountpoint$' >visuals
  23. fi
  24.  
  25. visuals=$(cat visuals)
  26.  
  27. for v in $visuals; do
  28.     /lib/partman/visual.d/$v $dev $num $id $size $type $fs $path $name
  29. done >$id/view
  30.